﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tetris
{
    class Program
    {
        static void Main(string[] args)
        {
           // try
          //  {
                int gameFieldLenght=20;
                int gameFieldWidth = 20;
                GameField gameField1 = new GameField(gameFieldLenght, gameFieldWidth);
                Renderer render = new OptimizedRenderer();
                Blocks block = new Blocks();
              

                GameEngine gameEngine = new GameEngine();
                gameEngine.Start(gameField1, render, block);
                
         //   }
           // catch
          //  {

           //     Console.WriteLine("GAME OVER");
           // }
            Console.ReadLine();
        }

    }
}
